﻿namespace SIG.ViewModel.Admin.Links
{
    public class LinkVM
    {
        public int Id { get; set; }    
        public string Title { get; set; }
        public string WebLink { get; set; }
        public string LogoUrl { get; set; }      
        public int Importance { get; set; }    
        public string Description { get; set; }      
        public bool Active { get; set; }    
        public int CategoryId { get; set; }
        public virtual LinkCategoryVM LinkCategory { get; set; }
        public string CategoryTitle
        {
            get
            {
                if (this.LinkCategory != null)
                {
                    return this.LinkCategory.Title;
                }
                return string.Empty;
            }
        }
    }
}
